import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";
export type BannerResult = {
  page: number;
  pagesize: number;
  success: boolean;
  code: number;
  token: string;
  msg: string;
  data: {
    img(img: any): string;
    data: any[];
    total: number;
    page: number;
    pagesize: number;
  };
};
// 还款计划列表
export const repaymentList= (data?: object) => {
  return http.request<BannerResult>("get", baseUrlApi(`admin/repayment/list?page=${data.page}&pagesize=${data.pagesize}&company_name=${data.company_name}&status=${data.status}&start=${data.start}&end=${data.end}`), {
    data
  });
};


